<?php

namespace app\common\service\lib;

use dh2y\qrcode\QRcode;
class QrcodeImg
{
    public function index($url)
    {
        $code = new QRcode();
        $res = $code->png($url)->entry();
        return $res;
    }
}